package util;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class FileIO {

  public static void db2File(String data) {
    String url = "C:\\Users\\Administrator\\Desktop\\" + Dates.formatDate(Dates.now()) + ".doc";
    File file = new File(url);
    try {
      Writer out = new FileWriter(file,true);
      out.write(data);
      out.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
}